package com.java1412.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * mall-goods就是商品微服务的spring.application.name
 *
 * @author java1412
 * @since 2023-07-24 14:28:26
 */
@FeignClient(value = "mall-goods")
public interface GoodsService {

    @RequestMapping("/api/v1/goods/findByGoodsId")
    public Object findByGoodsId(@RequestParam("goodsId") int goodsId);

    /**
     * /api/v1/goods/findByGoodsId就是商品服务提供的接口，参数也是
     */
    @GetMapping("/api/v1/goods/findClusterName")
    String findClusterName();
}
